home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
STRPPMCP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
642b
|
19 lines
// STRPPMCP.CPP - this module contains String::memcmp()
// This routine compares two areas of memory
// exactly like ANSI C memcmp() but determines whether to use
// case Sensitive compare or not bassed on whether String::caseSens is ON
//
#include <stdlib.h>
#include <string.h>
#include "dblib.h"
// NOTE: routine declared static in class {}. No 'this' ptr.
int String::memcmp (char *a, char *b, int nb)
// String::memcmp compares two memory areas
// checking for caseSens comparison. Note scope resolution.
{
return String::caseSens ? ::memcmp(a,b,nb) : memicmp(a,b,nb);
} // end String::memcmp()